package s47.dqj.dao;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;

import s47.dqj.bean.DepartmentDate;

public interface DepartmentDateDaoInf {

	@Resource(name = "sessionFactory")
	public abstract void setSupperSessionFactory(SessionFactory sessionFactory);

	/**
	 * 根据自定义条件查询科室人员排班表
	 * @param hql
	 * @param pageNum
	 * @return
	 */
	public abstract List<DepartmentDate> findAllByCondition(String hql,
			Integer pageNum);

	/**
	 * 分页
	 * @param tempHQL
	 * @return
	 */
	public abstract List<Integer> selectPageTotal(String tempHQL);

	/**
	 * 添加一个排班表
	 * @param departmentDate
	 */
	public abstract void save(DepartmentDate departmentDate);

	/**
	 * 修改排班表
	 * @param departmentDate
	 */
	public abstract void update(DepartmentDate departmentDate);

	/**
	 * 根据id查找某个排班表
	 * @param departmentDate
	 * @return
	 */
	public abstract DepartmentDate findObject(DepartmentDate departmentDate);

}